package com.sinoglobal.dumping.bean.myDumpling;

import java.util.List;

import com.sinoglobal.dumping.bean.Dumpling_BaseVo;

import android.provider.ContactsContract.Contacts.Data;

public class Dumpling_MyCashDumplingBean extends Dumpling_BaseVo {

	public List<MyCashDumpling> resultList ;
	/**我包 现金*/
	public double put_price ;
	/** 钱小锅订单ID*/
	public int number_price ;
	
	public class MyCashDumpling {
		/** /钱小锅订单ID*/
		public String dumplingUserPutmoneytid  ;
		/** 时间  算完的时间*/
		public long  createDate ;
		public long updateDate ;
		/** 祝福语*/
		public String blessing ;
		/** 钱总数*/
		public double moneyNum ;
		/** 饺子个数*/
		public int dumplinglNum ;
		/** 领取的个数*/
		public int receiveNum ;
		/** 状态  0,"未支付" 1,"支付成功" 2,"支付失败" 3,未领完,4,已领完,5,已过期    */
		public int status ;
		/** 用户id*/
		public String userid ;
		@Override
		public String toString() {
			return "MyCashDumpling [dumplingUserPutmoneytid="
					+ dumplingUserPutmoneytid + ", createDate=" + createDate
					+ ", updateDate=" + updateDate + ", blessing=" + blessing
					+ ", moneyNum=" + moneyNum + ", dumplinglNum="
					+ dumplinglNum + ", receiveNum=" + receiveNum + ", status="
					+ status + ", userid=" + userid + "]";
		}
	}
	
	@Override
	public String toString() {
		return "Dumpling_MyCashDumplingBean [resultList=" + resultList
				+ ", put_price=" + put_price + ", number_price=" + number_price
				+ "]";
	}

	public void addMore(Dumpling_MyCashDumplingBean data) {
		if (data == null || data.resultList == null) {
			return;
		}
		if (resultList == null || resultList.size() == 0) {
			resultList = data.resultList;
		} else {
			for (MyCashDumpling info : data.resultList) {
				if (this.resultList.contains(info)) {
					continue;
				}
				this.resultList.add(info);
			}
		}
	}
	
	
	
	public  void initRefreshData(){
		if(resultList!=null){
			resultList.clear();
		}
		initPageData();
	}

	public int getTotalCount() {
		return resultList.size();
	}

	public int getCurrentSize() {
		return resultList == null ? 0 : resultList.size();
	}

	public void clear() {
		if (resultList != null) {
			resultList.clear();
		}
	}

	public List<MyCashDumpling> getResultList() {
		return resultList;
	}
	
}
